package com.lagou.study.bean;

import com.lagou.study.service.TpService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.Reference;
import org.apache.dubbo.rpc.RpcContext;
import org.springframework.stereotype.Component;

import java.util.*;

@Component
public class ConsumerComponent {

    @DubboReference(group = "dubbo")
    private TpService tpService;

    public void methodA() {
        tpService.methodA();
    }
    public void methodB() {
        tpService.methodB();
    }
    public void methodC() {
        tpService.methodC();
    }

}
